package com.starblink.brand.adapter

import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.starblink.android.basic.adapter.BaseBindingVH
import com.starblink.basic.util.ActivityStackManage
import com.starblink.brand.bean.BrandMoreEndBean
import com.starblink.brand.databinding.ItemBrandTheEndBinding

class BrandMoreEndHolder(binding:ItemBrandTheEndBinding)
    :BaseBindingVH<BrandMoreEndBean,ItemBrandTheEndBinding>(binding) {
    init {
        val layoutParams = StaggeredGridLayoutManager.LayoutParams(
            StaggeredGridLayoutManager.LayoutParams.MATCH_PARENT,
            StaggeredGridLayoutManager.LayoutParams.WRAP_CONTENT
        ).apply {
            isFullSpan = true
        }
        layoutParams.setMargins(0,0,0,ActivityStackManage.currentActivity().resources.getDimensionPixelSize(
            com.starblink.basic.style.R.dimen.d_20dp))
        itemView.layoutParams = layoutParams
    }
    override fun onBind(model: BrandMoreEndBean, position: Int) {

    }
}